import Vue from 'vue'
import App from './App'
import Router from 'vue-router'
import 'normalize.css'
import 'mint-ui/lib/style.css'

import VueLazyload from 'vue-lazyload'


Vue.use(VueLazyload, {
    preLoad: 1,
    loading: require('../../../static/img/defaultimg.jpg'),
     error: require('../../../static/img/errimg.png')
});

Vue.use(Router);

Vue.config.productionTip = false

import Power from 'components/perkinslist/power';
import Industria from 'components/perkinslist/industria';
import Gas from 'components/perkinslist/gas';
const router = new Router({
    // mode: 'history',
    routes: [
        {path: '/power', component: Power},
        {path: '/industria', component: Industria},
        {path: '/gas', component: Gas}
    ]
})

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: {App},
    render: h => h(App)
})
